#!/usr/bin/env node

const { program } = require("commander")
const version = require('./package.json').version
const main = require('.')

program.version(version).option(
    '-c,--config <path>', 'set config path'
)

program.on('--help', () => {
    console.log('Examples:');
    console.log('  ' + 'helpContent')
})
program.command('create <proname>')
    .alias('crt')
    .description("创建一个项目")
    .action((proname) => {
        main(proname)
    })

program.parse(process.argv);
